<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>风车</title>
    <style>
        html{
            height:100%;
        }
        body{
            height:100%;
            margin:0;
        }
        #bg{
            width:100%;
            height:100%;
            background-image:url(caodi.png);
            background-size: 100% 100%;
        }
        #f1{
            width:26%;
            left:21%;
            top:25%
        }
        #f2{
            width:26%;
            left:38.6%;
            top:55%
        }
        #f3{
            width:26%;
            left:52%;
            top:47%
        }
        .fc{
            position: absolute;
            animation-name:spin;
            animation-duration: 2000ms;
            animation-iteration-count: infinite;
            animation-timing-function: linear;        
        }
        @keyframes spin{
            0%{
                transform: rotate(0);
            }
            100%{
                transform: rotate(360deg);
            }
        }
        #f1:hover{
            animation-duration: 1s;
        }
        #f2:hover{
            animation-play-state: paused;
        }
        #f3:active{
            animation-direction: alternate-reverse;
        }
    </style>
</head>
<body>
    <div id="bg">
        <img src="fengche.png" id="f1" class="fc" >
        <img src="fengche.png" id="f2" class="fc" >
        <img src="fengche.png" id="f3" class="fc" >
    </div>    
</body>
</html>